package com.example.leave.application.client.configuration;

import feign.FeignException;
import feign.Response;
import feign.codec.DecodeException;
import feign.codec.Decoder;
import org.springframework.context.annotation.Bean;

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * TODO
 *
 * @author lxh
 * @date 2020/11/26 下午4:46
 **/
public class CustomizeFeignConfiguration {
    @Bean
    public Decoder decoder() {
        return new CustomizeDecoder();
    }

    public static class CustomizeDecoder implements Decoder {
        @Override
        public Object decode(Response response, Type type) throws IOException, DecodeException, FeignException {
            return null;
        }
    }
}
